package cn.kxm.service;

import java.util.List;
import java.util.Map;

import cn.kxm.pojo.PartType;
import cn.kxm.pojo.ParttypeDetail;


public interface ParttypeDetailService {

	public List<Map<String, Object>> getall(Integer pname,Integer ptid,
			Integer page,Integer size);
	
	public int getCount(Integer pname,Integer ptid);
	
	public int getid();

	public int add(PartType p);
	public int adddetail(ParttypeDetail pd);
	public boolean adddouble(PartType p,ParttypeDetail pd);
	
	public Map<String, Object> getoneById(Integer id);
	
	public int update(PartType p);//主表
	public int updatedetail(ParttypeDetail pd);//明细表
	public boolean updatedouble(PartType p,ParttypeDetail pd);
	
	public List<PartType> getlist();
	public List<Integer> getarray();
	
	public int del(String id);
	public int deldetail(String ptid);
	public boolean deldouble(String id);
}
